package com.jg.test.Page;

import com.jg.test.AnyTest;

// 选择英雄
public class Battle000 extends Page {
    @Override
    public void effect() {
        // 初始页面无作用
    }

    @Override
    public void sendMessage() {
        System.out.println("选择进行攻击的英雄");
        for (int i = 0; i < 4; i++) {
            System.out.println(i + "." + AnyTest.team.get(i).getName() + "  " + AnyTest.team.get(i).getHp() + "/" + AnyTest.team.get(i).getHpLimit());
        }
        int choice = Page.numGet(AnyTest.team.size());
        AnyTest.team.add(AnyTest.team.get(choice));
    }

    @Override
    public void next() {
        AnyTest.pageNavigation.add(new Battle001());
    }
}
